<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<style type="text/css">
body{margin:20px;}
</style>
<script type="text/javascript">
$(document).ready(function(){

	$('tbody').find('tr').hover(function(){
		//$(this).css('background','#ccc');
	},function(){
		//$(this).css('background','none');
	});
	
});

function all_sl(str){
		$ck=$('#'+str).attr('checked');
		if($ck){
			$('table').find('#'+str).find('input').attr('checked','checked');
		}else{
			$('table').find('#'+str).find('input').attr('checked','');
		}
	}

</script>
</head>

<body>
<div class="div_out">
 <div class="position"><h2>当前位置 > <a href="#">生成内容</a></h2></div>
  <div class="lang"><span>当前的语言:</span>
 <?php
 $cache_file=DATA_PATH."cache/lang_cache.php";
 $cache_arr=read_cache($cache_file,'lang_cache');
 if(!empty($cache_arr)){
 foreach($cache_arr as $k=>$v){
  if(!$v['lang_is_use']){continue;}
 ?>
 <a href="?action=content&lang=<?php echo $v['lang_tag'];?>" class="<?php if($GLOBALS['lang']==$v['lang_tag']){echo 'hover'; $lang_name=$v['lang_name'];}?>"><?php echo $v['lang_name'];?></a>
 <?php
 }
 }
 ?>
 
 </div>
</div><!--导航-->

<div class="div_out" id="tb" >
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th style="width:15%">参数说明</th><th style="width:65%">参数值</th><th style="width:20%;">操作</th></tr>
	</thead>

	<tbody>
	<form name="maininfo" method="post" action="?action=content_htm" class="form">	
		<tr>
		  <td style="width:15%;text-align:center" class="w1">选择栏目：<input type="checkbox" style="border:0" value="" name="all_3" id="all" onclick="all_sl('all');"  title="全选"/></td><td style="width:65%" id="all"><?php
	if(!empty($category)){
	foreach($category as $key=>$value){
	if(in_array($value['cate_tpl'],array('1','2','3'))){continue;}
	if($value['cate_channel']=='-9'){continue;}
	?>
	<input type="checkbox" name="cate[]" value="<?php echo $value['id'];?>" style="margin:0 5px; margin-left:8px;border:0"/><?php echo $value['cate_name'];?>
	<?php
	}
	}
	?>
	</td>
	<td style="width:20%; padding-left:10px;">
  <input name="lang" type="hidden" value="<?php echo $lang?>" /><input type="hidden" name="htm" value="1" /><input name="cate_is" value="1" type="hidden" /><input type="hidden" name="step" value="1" />
  <input type="submit" value="确定" name="submit" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
	</td>
		</tr>
		</form>
	</tbody>
	
	
 </table>
 </div>
 <div class="btn" style="margin-top:10px">

 </div>

</body>
</html>
